package com.sooncode.project.focusservice.service;

import com.sooncode.project.core.finder.Finder;
import com.sooncode.project.core.finder.Page;
import com.sooncode.project.focusservice._.base.BaseService;
import com.sooncode.project.focusservice.model.Teacher;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TeacherService extends BaseService<Teacher> {

    public Page<Teacher> getPageList(String orgId, int pageSize, int pageIndex, Map map) {
        return new Finder<>(Teacher.class)
            .byField("orgId",orgId)
            .and(map)
            .page(pageSize,pageIndex);
    }
}
